84% solid-data-summary

Code Review | Solid Data Summary

WordPress plugin Solid Data Summary scored84%from 54 tests.

About plugin

  • Plugin page: solid-data-summary
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 15, 2022
  • Latest release: Aug 15, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: soliddigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.59ms] Passed 4 tests

A check of server-side resources used by Solid Data Summary
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.92 ▼9.54
Dashboard /wp-admin3.34 ▲0.0347.41 ▲1.04
Posts /wp-admin/edit.php3.39 ▲0.0349.97 ▲4.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.77 ▼7.51
Media Library /wp-admin/upload.php3.26 ▲0.0332.70 ▼10.36
Solid Data Summary /wp-admin/options-general.php?page=solid-data-summary3.2434.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Solid Data Summary
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.41 ▼0.971.51 ▼0.4737.66 ▼5.69
Dashboard /wp-admin2,210 ▲224.85 ▼0.05111.20 ▲0.0845.07 ▲6.01
Posts /wp-admin/edit.php2,090 ▼22.02 ▼0.0338.97 ▲2.7333.84 ▲2.47
Add New Post /wp-admin/post-new.php1,540 ▼223.34 ▲5.11661.59 ▲37.4253.33 ▼3.54
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.1198.79 ▼16.5743.07 ▼4.72
Solid Data Summary /wp-admin/options-general.php?page=solid-data-summary1,1352.0125.8231.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function solid_data_summary\\add_action() in wp-content/plugins/solid-data-summary/solid-data-summary.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: post_type, summary, taxonomy

solid-data-summary/solid-data-summary.php 92% from 13 tests

"Solid Data Summary" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161093

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin