Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲2.23MB] [CPU: ▲12.27ms] Passed 4 tests
An overview of server-side resources used by teachPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.12 ▲1.65 | 46.05 ▲4.55 |
Dashboard /wp-admin | 5.73 ▲2.42 | 59.80 ▲10.65 |
Posts /wp-admin/edit.php | 5.78 ▲2.42 | 64.23 ▲18.89 |
Add New Post /wp-admin/post-new.php | 8.31 ▲2.43 | 108.85 ▲15.18 |
Media Library /wp-admin/upload.php | 5.65 ▲2.42 | 51.89 ▲18.68 |
teachPress /wp-admin/options-general.php?page=teachpress/settings.php | 5.58 | 47.84 |
Server storage [IO: ▲5.92MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 145 new files
Database: 12 new tables, 7 new options
New tables |
---|
wp_teachpress_rel_pub_auth |
wp_teachpress_tags |
wp_teachpress_pub_documents |
wp_teachpress_pub |
wp_teachpress_settings |
wp_teachpress_monitored_sources |
wp_teachpress_authors |
wp_teachpress_pub_meta |
wp_teachpress_relation |
wp_teachpress_pub_capabilities |
... |
New WordPress options |
---|
widget_tp_books_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for teachPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲90 | 14.24 ▼0.49 | 1.69 ▼0.05 | 38.33 ▼5.86 |
Dashboard /wp-admin | 2,245 ▲67 | 5.51 ▼0.21 | 94.23 ▼21.32 | 82.13 ▲36.25 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.00 ▲0.05 | 38.22 ▼2.20 | 33.32 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,585 ▲59 | 23.05 ▼0.62 | 674.22 ▲9.82 | 48.10 ▼5.71 |
Media Library /wp-admin/upload.php | 1,450 ▲47 | 4.13 ▼0.06 | 97.49 ▲2.37 | 76.74 ▲36.17 |
Your publications /wp-admin/publications.php?page=teachpress/publications.php | 26 | 0.41 | 0.07 | 16.07 |
Publications /wp-admin/publications.php | 26 | 0.41 | 0.07 | 5.87 |
Add new /wp-admin/publications.php?page=teachpress/addpublications.php | 26 | 0.41 | 0.07 | 6.83 |
Import/Export /wp-admin/publications.php?page=teachpress/import.php | 26 | 0.41 | 0.06 | 6.12 |
teachPress /wp-admin/options-general.php?page=teachpress/settings.php | 1,237 | 2.94 | 48.29 | 68.91 |
Authors /wp-admin/publications.php?page=teachpress/authors.php | 26 | 0.41 | 0.08 | 4.96 |
Auto-publish /wp-admin/publications.php?page=teachpress/sources.php | 26 | 0.41 | 0.08 | 7.24 |
Tags /wp-admin/publications.php?page=teachpress/tags.php | 26 | 0.41 | 0.28 | 5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 12 tables in the database
- wp_teachpress_rel_pub_auth
- wp_teachpress_monitored_sources
- wp_teachpress_settings
- wp_teachpress_pub_capabilities
- wp_teachpress_pub_documents
- wp_teachpress_pub_meta
- wp_teachpress_pub_imports
- wp_teachpress_tags
- wp_teachpress_user
- wp_teachpress_relation
- ...
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_tp_books_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 55× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 69
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 104
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 90
- > PHP Fatal error
Uncaught Error: Class 'TP_Bibtex_Import' not found in wp-content/plugins/teachpress/core/publications/class-pubmed-import.php:17
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 83
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 125
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 55
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 118
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/teachpress/core/constants.php on line 132
- > PHP Fatal error
Uncaught Error: Class 'TP_Bibtex_Import' not found in wp-content/plugins/teachpress/core/publications/class-crossref-import.php:27
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/publications.php?page=teachpress/publications.php
- > Network (severe)
wp-admin/publications.php?page=teachpress/publications.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/publications.php
- > Network (severe)
wp-admin/publications.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/publications.php?page=teachpress/addpublications.php
- > Network (severe)
wp-admin/publications.php?page=teachpress/addpublications.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/publications.php?page=teachpress/import.php
- > Network (severe)
wp-admin/publications.php?page=teachpress/import.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/publications.php?page=teachpress/authors.php
- > Network (severe)
wp-admin/publications.php?page=teachpress/authors.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/publications.php?page=teachpress/sources.php
- > Network (severe)
wp-admin/publications.php?page=teachpress/sources.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/publications.php?page=teachpress/tags.php
- > Network (severe)
wp-admin/publications.php?page=teachpress/tags.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Publication overview screen), #2 (Add publication screen), #3 (Example for a publication list created with [tpcloud]), #4 (Example for a publication list created with [tpsearch]), #5 (Example for a reference list created with [tpcite] and [tpref]), #6 (Import publications screen)
teachpress/teachpress.php Passed 13 tests
The principal PHP file in "teachPress" v. 9.0.6 is loaded by WordPress automatically on each request
45 characters long description:
Powerful publication management for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin38,704 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,884 | 5,213 | 11,754 |
SVG | 4 | 0 | 12 | 8,998 |
PO File | 8 | 3,504 | 5,524 | 7,874 |
CSS | 22 | 2,882 | 130 | 6,813 |
JavaScript | 10 | 101 | 234 | 3,189 |
Markdown | 2 | 23 | 0 | 68 |
JSON | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 34.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 44 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 393 | |
▷ Static methods | 305 | 77.61% |
▷ Public methods | 295 | 75.06% |
▷ Protected methods | 2 | 0.51% |
▷ Private methods | 96 | 24.43% |
Functions | 88 | |
▷ Named functions | 82 | 93.18% |
▷ Anonymous functions | 6 | 6.82% |
Constants | 37 | |
▷ Global constants | 37 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/full.png | 10.40KB | 4.34KB | ▼ 58.24% |
images/child.png | 2.78KB | 0.10KB | ▼ 96.24% |
images/logo_big.png | 4.23KB | 0.96KB | ▼ 77.24% |
images/logo_small.png | 3.78KB | 0.44KB | ▼ 88.23% |
js/logo_small_black.png | 3.00KB | 0.44KB | ▼ 85.18% |