84% id-report

Code Review | ID REPORT

WordPress plugin ID REPORT scored84%from 54 tests.

About plugin

  • Plugin page: id-report
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2018
  • Latest release: Feb 2, 2018
  • Number of updates: 18
  • Update frequency: every 0.8 days
  • Top authors: danribeiro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.70ms] Passed 4 tests

Analyzing server-side resources used by ID REPORT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.72 ▼5.59
Dashboard /wp-admin3.32 ▲0.0244.39 ▼6.70
Posts /wp-admin/edit.php3.37 ▲0.0144.73 ▼0.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.66 ▼13.88
Media Library /wp-admin/upload.php3.24 ▲0.0135.16 ▲0.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ID REPORT
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.15 ▼1.271.49 ▼0.2039.25 ▼5.48
Dashboard /wp-admin2,219 ▲315.79 ▼0.0298.72 ▼19.7336.63 ▼7.77
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0440.00 ▲2.3134.91 ▲0.40
Add New Post /wp-admin/post-new.php1,527 ▼117.44 ▼0.84672.12 ▲10.2557.43 ▼1.12
Media Library /wp-admin/upload.php1,398 ▲74.15 ▼0.0595.78 ▼1.8441.64 ▲0.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/id-report/adminpages/reports.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/id-report/adminpages/reports.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/id-report/idreport.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/id-report/idreports-functions.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
3 plugin tags: export ignitiondeck orders to pdf, export woocommerce orders to pdf, export shipping orders woocommerce and ignitiondeck address to pdf

id-report/idreport.php 92% from 13 tests

The principal PHP file in "ID REPORT" v. 2.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("id-report.php" instead of "idreport.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
Everything looks great! No dangerous files found in this plugin5,797 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP202862843,398
HTML513202,378
CSS10021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity214.50
▷ Minimum class complexity91.00
▷ Maximum class complexity338.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods121
▷ Static methods00.00%
▷ Public methods8368.60%
▷ Protected methods3831.40%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected