84% easy-content-adder

Code Review | Easy Content Adder

WordPress plugin Easy Content Adder scored84%from 54 tests.

About plugin

  • Plugin page: easy-content-adder
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: Jan 26, 2020
  • Number of updates: 39
  • Update frequency: every 43.9 days
  • Top authors: byronj (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.16ms] Passed 4 tests

A check of server-side resources used by Easy Content Adder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0252.11 ▲9.10
Dashboard /wp-admin3.32 ▲0.0257.04 ▲1.85
Posts /wp-admin/edit.php3.37 ▲0.0250.51 ▲1.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.24 ▼11.62
Media Library /wp-admin/upload.php3.25 ▲0.0341.43 ▲3.69
Easy Content Adder /wp-admin/options-general.php?page=beca-options3.2940.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easy Content Adder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.81 ▼0.579.47 ▲7.7542.69 ▼1.67
Dashboard /wp-admin2,223 ▲175.77 ▼0.13100.40 ▼3.9641.86 ▼1.14
Posts /wp-admin/edit.php2,111 ▲82.06 ▼0.1236.24 ▼4.3933.19 ▼4.61
Add New Post /wp-admin/post-new.php1,533 ▼1223.00 ▼0.13630.74 ▼38.0650.32 ▼3.12
Media Library /wp-admin/upload.php1,411 ▲144.23 ▲0.0496.82 ▼3.7843.45 ▼0.18
Easy Content Adder /wp-admin/options-general.php?page=beca-options1,6066.59131.8756.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Content_Adder_Public_Display' not found in wp-content/plugins/easy-content-adder/public/partials/easy-content-adder-public-display.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Content_Adder_Admin_Display' not found in wp-content/plugins/easy-content-adder/admin/partials/easy-content-adder-admin-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

easy-content-adder/easy-content-adder.php Passed 13 tests

The main PHP file in "Easy Content Adder" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Easily add content to all of your Pages, Posts, and Custom Post Types.

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
Success! There were no dangerous files found in this plugin539 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14248683488
CSS213845
JavaScript24546

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.44
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected