89% easy-content

Code Review | Content-as-a-Service

WordPress plugin Content-as-a-Service scored 89% from 54 tests.

About plugin

  • Plugin page: easy-content
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Feb 3, 2020
  • Latest release: Jul 12, 2021
  • Number of updates: 146
  • Update frequency: every 3.6 days
  • Top authors: tonycontent (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

60+ active / 2,779 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.11MB] [CPU: ▲795.51ms] 75% from 4 tests

An overview of server-side resources used by Content-as-a-Service
Please have a look at the following items
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 795.51ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1153.92 ▲0.44
Dashboard /wp-admin3.22 ▼0.191,521.32 ▲1,487.27
Posts /wp-admin/edit.php3.22 ▼0.431,556.65 ▲1,519.75
Add New Post /wp-admin/post-new.php3.22 ▼3.761,494.70 ▲214.37
Media Library /wp-admin/upload.php3.22 ▼0.081,503.42 ▲1,479.96

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Content-as-a-Service: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲8515.98 ▲0.206.97 ▲0.681.92 ▼0.70
Dashboard /wp-admin2,939 ▲886.20 ▲0.05125.78 ▼10.43163.76 ▲8.95
Posts /wp-admin/edit.php2,800 ▲1093.37 ▼0.0065.07 ▲0.42138.87 ▼5.80
Add New Post /wp-admin/post-new.php1,791 ▲12321.28 ▲3.19424.48 ▼3.44161.84 ▲6.09
Media Library /wp-admin/upload.php1,753 ▲585.56 ▲0.02148.29 ▲15.05187.91 ▲6.56

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
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (51 tag instead of maximum 10)
  • Screenshots: Please add descriptions for these screenshots #2, #3 in easy-content/assets to your readme.txt
Please take inspiration from this readme.txt

easy-content/easy-content-install.php 92% from 13 tests

The principal PHP file in "Content-as-a-Service" v. 2.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-content.php" instead of "easy-content-install.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,033 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12516527
PHP21425505
CSS1061

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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