Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/odlinks/includes/odl_functions.php+79
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.45ms] Passed 4 tests
Analyzing server-side resources used by Open Links Directory
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 6.16 ▼36.22 |
Dashboard /wp-admin | 2.10 ▼1.20 | 7.51 ▼45.94 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.31 ▼38.77 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.48 ▼88.87 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 7.66 ▼26.58 |
Settings /wp-admin/admin.php?page=odlinkssettings | 2.10 | 7.23 |
ODLinks /wp-admin/admin.php?page=odlinks/admin/odl_admin.php | 2.18 | 7.56 |
Utilities /wp-admin/admin.php?page=odlinksutilities | 2.18 | 6.58 |
Categories /wp-admin/admin.php?page=odlinksstructure | 2.18 | 7.31 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 291 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
odlinksdata |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Open Links Directory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.34 ▼1.04 | 4.66 ▲2.67 | 33.57 ▼9.92 |
Dashboard /wp-admin | 2,225 ▲37 | 4.94 ▼0.88 | 103.32 ▼13.13 | 73.46 ▲27.07 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.02 ▲0.01 | 35.74 ▼0.95 | 37.14 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.77 ▲0.50 | 777.24 ▲72.48 | 49.04 ▼3.52 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.26 ▲0.01 | 109.14 ▲12.92 | 88.16 ▲42.44 |
Settings /wp-admin/admin.php?page=odlinkssettings | 896 | 1.14 | 7.42 | 39.09 |
ODLinks /wp-admin/admin.php?page=odlinks/admin/odl_admin.php | 879 | 2.02 | 23.23 | 32.15 |
Utilities /wp-admin/admin.php?page=odlinksutilities | 808 | 2.06 | 26.10 | 25.30 |
Categories /wp-admin/admin.php?page=odlinksstructure | 850 | 2.18 | 28.55 | 27.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/odlinks/includes/odl_functions.php+79
Array and string offset access syntax with curly braces is deprecated
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
- can_compress_scripts
- odlinksdata
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 40 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Deprecated in wp-content/plugins/odlinks/odl_main.php+295
Array and string offset access syntax with curly braces is deprecated
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_settings.php+63
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_settings.php+332
Undefined variable: user_field
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Warning in wp-content/plugins/odlinks/admin/odl_admin_settings.php+102
Use of undefined constant ODL_SUBMITTING_NOTE - assumed 'ODL_SUBMITTING_NOTE' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_settings.php+211
Undefined variable: odl_lang
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_settings.php+211
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Warning in wp-content/plugins/odlinks/admin/odl_admin_settings.php+102
Use of undefined constant ODL_SUBMITTING_TEXT - assumed 'ODL_SUBMITTING_TEXT' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_settings.php+102
Undefined index: description
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Deprecated in wp-content/plugins/odlinks/admin/odl_admin_settings.php+151
The each() function is deprecated. This message will be suppressed on further calls
- > GET request to /wp-admin/admin.php?page=odlinkssettings
- > Error in wp-content/plugins/odlinks/admin/odl_admin_settings.php+152
Uncaught Error: Call to undefined function ereg() in wp-content/plugins/odlinks/admin/odl_admin_settings.php:152
Stack trace:
#0 wp-includes/class-wp-hook.php(310): process_odlinkssettings()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_structure.php+24
Undefined index: odlinks_admin_action
- > GET request to /wp-admin/admin.php?page=odlinks/admin/odl_admin.php
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_functions.php+63
Undefined index: id
- > GET request to /wp-admin/admin.php?page=odlinks/admin/odl_admin.php
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_functions.php+63
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinksutilities
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_utilities.php+62
Undefined variable: PHP_SELF
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_structure.php+64
Undefined variable: msg
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_structure.php+18
Undefined index: c_id
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Warning in wp-content/plugins/odlinks/admin/odl_admin_structure.php+138
Use of undefined constant active - assumed 'active' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Warning in wp-content/plugins/odlinks/admin/odl_admin_structure.php+138
Use of undefined constant inactive - assumed 'inactive' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Warning in wp-content/plugins/odlinks/admin/odl_admin_structure.php+138
Use of undefined constant readonly - assumed 'readonly' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_structure.php+162
Undefined variable: orderby
- > GET request to /wp-admin/admin.php?page=odlinksstructure
- > Notice in wp-content/plugins/odlinks/admin/odl_admin_structure.php+162
Undefined variable: how
SRP 0% 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
Please take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/odlinks/language/lang_ru.php
- > /wp-content/plugins/odlinks/includes/odl_rss.php
- > /wp-content/plugins/odlinks/includes/odl_securimage_show.php
- > /wp-content/plugins/odlinks/includes/_thumbshots.class.php
- 91× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Method_RegisterFilter' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_method_unregisterfilter.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_ParseTree' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_parsetree_dqcontent.php:19
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Compile_Shared_Inheritance' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_compile_block.php:16
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Compile_Ldelim' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_compile_rdelim.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Resource_Recompiled' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_resource_stream.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/odlinks/language/lang_es.php:56
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_compile_include.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Method_CompileAllTemplates' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_method_compileallconfig.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Compile_Break' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_internal_compile_continue.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/odlinks/includes/Smarty/sysplugins/smarty_resource_uncompiled.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: classifieds, website submitting, websites directory, odlinks, open directory...
odlinks/odl_control.php 85% from 13 tests
The main PHP file in "Open Links Directory" ver. 1.5.0-a... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.5.0-a...")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("odlinks.php" instead of "odl_control.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
There were no executable files found in this plugin25,828 lines of code in 247 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 230 | 2,094 | 12,394 | 24,330 |
JavaScript | 4 | 169 | 274 | 803 |
Smarty | 10 | 38 | 10 | 506 |
CSS | 2 | 5 | 12 | 112 |
XML | 1 | 2 | 8 | 77 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 179 | |
▷ Abstract classes | 13 | 7.26% |
▷ Concrete classes | 166 | 92.74% |
▷ Final classes | 0 | 0.00% |
Methods | 954 | |
▷ Static methods | 30 | 3.14% |
▷ Public methods | 909 | 95.28% |
▷ Protected methods | 24 | 2.52% |
▷ Private methods | 21 | 2.20% |
Functions | 126 | |
▷ Named functions | 126 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 173 | |
▷ Global constants | 20 | 11.56% |
▷ Class constants | 153 | 88.44% |
▷ Public constants | 153 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/question.png | 0.27KB | 0.14KB | ▼ 48.73% |
images/rss.png | 0.67KB | 0.90KB | 0.00% |
images/edit.png | 3.49KB | 0.90KB | ▼ 74.11% |
images/asc.png | 0.21KB | 0.12KB | ▼ 41.31% |
images/back.png | 0.72KB | 0.72KB | ▼ 0.67% |