Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.57MB] [CPU: ▼23.30ms] Passed 4 tests
Analyzing server-side resources used by Embed Wikimedia
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.04 ▲3.83 |
Dashboard /wp-admin | 3.41 ▲0.07 | 47.54 ▼17.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.32 ▼1.47 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.59 | 36.54 ▼74.41 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.49 ▼0.07 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed Wikimedia
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.13 | 1.66 ▼0.05 | 44.34 ▲4.68 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▼0.00 | 106.26 ▲0.83 | 40.36 ▼1.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 39.89 ▼1.54 | 34.65 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6,180 ▲4,666 | 19.79 ▲2.27 | 902.64 ▲193.32 | 36.39 ▼29.59 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.02 | 97.31 ▼10.64 | 39.78 ▼7.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Samwilson\\EmbedWikimedia\\WikimediaProject' not found in wp-content/plugins/embed-wikimedia/src/Wikidata.php:19
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Samwilson\\EmbedWikimedia\\WikimediaProject' not found in wp-content/plugins/embed-wikimedia/src/Commons.php:18
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/embed-wikimedia/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: photos, wikipedia, embed, embeds, wikimedia...
embed-wikimedia/embed-wikimedia.php Passed 13 tests
The main file in "Embed Wikimedia" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Embed links to Wikimedia projects such as Wikipedia.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,832 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 237 | 486 | 1,369 |
Markdown | 2 | 46 | 0 | 162 |
JavaScript | 1 | 6 | 18 | 155 |
JSON | 2 | 0 | 0 | 115 |
XML | 1 | 2 | 0 | 23 |
YAML | 1 | 3 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 3 | 8.33% |
▷ Concrete classes | 33 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 4 | 5.19% |
▷ Public methods | 65 | 84.42% |
▷ Protected methods | 11 | 14.29% |
▷ Private methods | 1 | 1.30% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wikidata.png | 0.36KB | 0.17KB | ▼ 52.73% |