90% wp-idados-crud

Code Review | wp-idados-crud

WordPress plugin wp-idados-crud scored90%from 54 tests.

About plugin

  • Plugin page: wp-idados-crud
  • Plugin version: 0.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-3.5.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Aug 16, 2016
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: naldovieira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,505 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by wp-idados-crud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼2.87
Dashboard /wp-admin3.31 ▲0.0142.11 ▼8.58
Posts /wp-admin/edit.php3.36 ▲0.0148.53 ▲3.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.67 ▼2.24
Media Library /wp-admin/upload.php3.23 ▲0.0135.46 ▼0.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: 2 new tables, 6 new options
New tables
wp_i0001
wp_i0002
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

wp-idados-crud: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.57 ▼0.994.77 ▲2.9840.40 ▼6.31
Dashboard /wp-admin2,209 ▲205.82 ▲0.8596.13 ▼14.3838.54 ▼5.97
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0138.41 ▲2.3735.55 ▲1.45
Add New Post /wp-admin/post-new.php1,536 ▲323.28 ▲0.28606.31 ▼53.9950.38 ▼12.48
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0295.23 ▲1.0142.12 ▼1.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

wp-idados-crud/wp-idados-crud.php Passed 13 tests

The main PHP script in "wp-idados-crud" version 0.0.11 is automatically included on every request by WordPress
77 characters long description:
Base necessária para fazer os módulos idados-xxxx funcionarem corretamente.

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 plugin3,003 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45735533,003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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
Namespaces0
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%
Functions70
▷ Named functions70100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin