68% jameels-dev-tools

Code Review | Jameel's Dev Tools

WordPress plugin Jameel's Dev Tools scored68%from 54 tests.

About plugin

  • Plugin page: jameels-dev-tools
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Aug 24, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: jameelbokhari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,219 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.37MB] [CPU: ▼252,450.93ms] Passed 4 tests

Server-side resources used by Jameel's Dev Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0846.04 ▲3.97
Dashboard /wp-admin3.42 ▼5.7051.14 ▼1,009,791.64
Posts /wp-admin/edit.php3.54 ▲0.1453.52 ▲2.70
Add New Post /wp-admin/post-new.php6.00 ▲0.0789.26 ▼18.75
Media Library /wp-admin/upload.php3.34 ▲0.0743.19 ▲10.12
Jameel's Dev Tools /wp-admin/tools.php?page=dev_tool_options3.3140.07

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_jdttempdata
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Jameel's Dev Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.28 ▼0.071.74 ▲0.1545.77 ▲6.04
Dashboard /wp-admin2,201 ▲245.55 ▼0.1184.49 ▼3.3239.87 ▼6.17
Posts /wp-admin/edit.php2,088 ▼152.00 ▲0.0335.80 ▲0.4136.39 ▲5.55
Add New Post /wp-admin/post-new.php1,531 ▲523.71 ▲0.60670.72 ▲59.0458.24 ▲3.71
Media Library /wp-admin/upload.php1,409 ▲64.21 ▲0.07110.41 ▲8.2347.46 ▲4.02
Jameel's Dev Tools /wp-admin/tools.php?page=dev_tool_options8691.9926.5038.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_jdttempdata
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=dev_tool_options
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=dev_tool_options
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jameels-dev-tools/inc/jdt_admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jameels-dev-tools/inc/jdt_admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jameels-dev-tools/inc/jdt_columns.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jameels-dev-tools/inc/jdt_urls.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jameels-dev-tools/inc/jdt_wordpress_settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: columns, development, tools, url, find and replace

jameels-dev-tools/plugin.php 92% from 13 tests

"Jameel's Dev Tools" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("jameels-dev-tools.php" instead of "plugin.php")

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
No dangerous file extensions were detected650 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP655189495
CSS2450120
JavaScript20135

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.67
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected