Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+2
Use of undefined constant EeweePinterest - assumed 'EeweePinterest' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.93MB] [CPU: ▼56.65ms] Passed 4 tests
Analyzing server-side resources used by eewee pinterest
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 6.28 ▼40.22 |
Dashboard /wp-admin | 2.08 ▼1.23 | 8.26 ▼45.02 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.00 ▼47.16 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.60 ▼94.19 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.31 ▼32.91 |
Manuel /wp-admin/admin.php?page=idSousMenuPinterest2 | 2.08 | 7.98 |
Eewee Pinterest /wp-admin/admin.php?page=idEeweePinterest | 2.08 | 9.02 |
Widget /wp-admin/admin.php?page=idSousMenuPinterest1 | 2.08 | 7.39 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for eewee pinterest
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲209 | 15.00 ▲1.77 | 21.06 ▲19.28 | 56.69 ▲10.15 |
Dashboard /wp-admin | 2,239 ▲33 | 5.84 ▼0.07 | 119.73 ▲12.39 | 91.28 ▲48.32 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 1.97 ▼0.03 | 40.02 ▼0.41 | 36.31 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.96 ▲0.52 | 700.52 ▼6.11 | 57.53 ▲4.55 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.15 ▼0.06 | 158.79 ▲50.72 | 81.20 ▲35.47 |
Manuel /wp-admin/admin.php?page=idSousMenuPinterest2 | 952 | 2.01 | 30.40 | 36.68 |
Eewee Pinterest /wp-admin/admin.php?page=idEeweePinterest | 950 | 2.01 | 29.44 | 36.38 |
Widget /wp-admin/admin.php?page=idSousMenuPinterest1 | 921 | 2.05 | 27.09 | 29.99 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+2
Use of undefined constant EeweePinterest - assumed 'EeweePinterest' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Warning in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+2
Use of undefined constant EeweePinterest - assumed 'EeweePinterest' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Warning in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+27
Use of undefined constant menu - assumed 'menu' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Warning in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+29
Use of undefined constant sousMenu1 - assumed 'sousMenu1' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Warning in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+30
Use of undefined constant sousMenu2 - assumed 'sousMenu2' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Notice in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php+152
Undefined property: EeweePinterest::$adminOptionsName
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Warning in wp-content/plugins/eewee-pinterest/forms/addPinterest.php+54
Use of undefined constant PLUGIN_NOM_LANG - assumed 'PLUGIN_NOM_LANG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Notice in wp-content/plugins/eewee-pinterest/view/tableau.php+3
Undefined index: type
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Notice in wp-content/plugins/eewee-pinterest/forms/addPinterest.php+77
Undefined variable: selectHeader
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/eewee-pinterest/view/manuel.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-pinterest/index.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/eewee-pinterest/index.php:18
- > PHP Fatal error
Uncaught Error: Class 'form_add_pinterest' not found in wp-content/plugins/eewee-pinterest/view/pinterest.php:15
- > PHP Warning
Use of undefined constant EeweePinterest - assumed 'EeweePinterest' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-pinterest/controllers/EeweePinterest.php on line 2
- > PHP Notice
Undefined index: type in wp-content/plugins/eewee-pinterest/view/tableau.php on line 3
- > PHP Warning
include(EEWEE_PINTEREST_PLUGIN_DIR/view/pinterest.php): failed to open stream: No such file or directory in wp-content/plugins/eewee-pinterest/view/tableau.php on line 8
- > PHP Warning
include(): Failed opening 'EEWEE_PINTEREST_PLUGIN_DIR/view/pinterest.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/eewee-pinterest/view/tableau.php on line 8
- > PHP Warning
Use of undefined constant EEWEE_PINTEREST_PLUGIN_DIR - assumed 'EEWEE_PINTEREST_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-pinterest/view/tableau.php on line 8
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenuPinterest1
- > Network (severe)
wp-content/plugins/eewee_pinterest/img/icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Render of widget pinterest on wordpress website.)
eewee-pinterest/index.php 92% from 13 tests
This is the main PHP file of "eewee pinterest" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("eewee-pinterest.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected340 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 79 | 122 | 272 |
PO File | 1 | 26 | 31 | 68 |
CSS | 1 | 2 | 1 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 6.26KB | 0.61KB | ▼ 90.20% |