84% easy-content-analysis

Code Review | Easy Content Analysis

WordPress plugin Easy Content Analysis scored84%from 54 tests.

About plugin

  • Plugin page: easy-content-anal...
  • Plugin version: 1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 6.3.1
  • First release: Feb 16, 2021
  • Latest release: Feb 16, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /445 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.32ms] Passed 4 tests

A check of server-side resources used by Easy Content Analysis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.99 ▲2.81
Dashboard /wp-admin3.32 ▲0.0148.81 ▼4.07
Posts /wp-admin/edit.php3.37 ▲0.0151.58 ▼0.17
Add New Post /wp-admin/post-new.php5.85 ▼0.0486.15 ▼14.98
Media Library /wp-admin/upload.php3.24 ▲0.0137.49 ▲1.95
settings for Easy Content Analysis /wp-admin/options-general.php?page=easy-content-analysis3.2132.28

Server storage [IO: ▲0.92MB] [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
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Content Analysis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.39 ▼1.282.10 ▲0.1845.47 ▲3.01
Dashboard /wp-admin2,207 ▲165.84 ▲0.8295.96 ▼8.2038.55 ▼5.99
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0340.46 ▲4.6538.08 ▲0.67
Add New Post /wp-admin/post-new.php1,544 ▲3024.25 ▲6.81713.01 ▲39.9764.58 ▲8.87
Media Library /wp-admin/upload.php1,389 ▲14.24 ▼0.02100.09 ▼4.4443.63 ▼2.30
settings for Easy Content Analysis /wp-admin/options-general.php?page=easy-content-analysis7842.0523.3926.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 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/easy-content-analysis/index.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: nlp

easy-content-analysis/index.php 92% from 13 tests

This is the main PHP file of "Easy Content Analysis" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-content-analysis.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin433 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5361178
PHP2449124
CSS3210102
JSON10029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.33
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin