84% seo-content-editor

Code Review | SEOCE - SEO Content Editor

WordPress plugin SEOCE - SEO Content Editor scored84%from 54 tests.

About plugin

  • Plugin page: seo-content-editor
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Jun 6, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ektorcaba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼10.82ms] Passed 4 tests

Server-side resources used by SEOCE - SEO Content Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.99 ▼2.07
Dashboard /wp-admin3.34 ▲0.0452.01 ▼0.07
Posts /wp-admin/edit.php3.39 ▲0.0447.32 ▼6.43
Add New Post /wp-admin/post-new.php4.83 ▼1.0564.12 ▼33.33
Media Library /wp-admin/upload.php3.26 ▲0.0434.22 ▼1.43
SEO CE Generator /wp-admin/options-general.php?page=seoce-generator3.2330.85

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SEOCE - SEO Content Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.22 ▼0.491.67 ▼0.2244.57 ▼0.23
Dashboard /wp-admin2,202 ▲315.62 ▲0.0386.91 ▼13.8839.96 ▼2.92
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0339.09 ▼0.2434.85 ▼1.53
Add New Post /wp-admin/post-new.php6,345 ▲4,81720.88 ▼2.29889.61 ▲211.2689.32 ▲23.11
Media Library /wp-admin/upload.php1,404 ▲14.16 ▲0.04104.15 ▼4.8446.04 ▲1.35
SEO CE Generator /wp-admin/options-general.php?page=seoce-generator9302.0123.5827.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-content-editor/seo-content-editor.php:79

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: text, seo, redactor, editor, keywords

seo-content-editor/seo-content-editor.php Passed 13 tests

"SEOCE - SEO Content Editor" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
Add SEO options to classic editor for redactor

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 detected4,542 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9586604,294
PHP114515144
CSS2540104

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
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
No PNG files were detected