79% searchmetrics-content-experience

Code Review | Searchmetrics Content Experience

WordPress plugin Searchmetrics Content Experience scored79%from 54 tests.

About plugin

  • Plugin page: searchmetrics-con...
  • Plugin version: 2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Nov 5, 2020
  • Latest release: Feb 3, 2022
  • Number of updates: 29
  • Update frequency: every 16.0 days
  • Top authors: searchmetrics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Searchmetrics Content Experience
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0375.18 ▲1.82
Dashboard /wp-admin3.33 ▲0.0383.04 ▲1.99
Posts /wp-admin/edit.php3.38 ▲0.0379.82 ▼3.75
Add New Post /wp-admin/post-new.php5.88 ▼0.00148.46 ▲2.22
Media Library /wp-admin/upload.php3.25 ▲0.0363.36 ▼4.04
Content Experience /wp-admin/options-general.php?page=content_experience_setup3.2259.01
/wp-admin/admin.php?page=content-experience-tutorial3.2255.71

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
content_experience_tutorial_active
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Searchmetrics Content Experience
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.32 ▲0.353.77 ▲0.6376.56 ▲1.26
Dashboard /wp-admin2,233 ▲484.84 ▼1.06187.49 ▼21.1987.94 ▲1.54
Posts /wp-admin/edit.php2,116 ▲272.04 ▼0.0265.25 ▼3.0071.14 ▼8.03
Add New Post /wp-admin/post-new.php1,600 ▲18923.86 ▲6.07942.31 ▼56.6357.71 ▼16.74
Media Library /wp-admin/upload.php1,415 ▲364.23 ▲0.04177.04 ▼7.1398.05 ▲0.29
Content Experience /wp-admin/options-general.php?page=content_experience_setup8391.8347.3757.16
/wp-admin/admin.php?page=content-experience-tutorial9222.0543.5173.29

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/searchmetrics-content-experience/includes/content-experience-settings.php
    • > /wp-content/plugins/searchmetrics-content-experience/searchmetrics-content-experience.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/searchmetrics-content-experience/includes/content-analyzer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/searchmetrics-content-experience/includes/content-experience-tutorial.php:3

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 Passed 29 tests

readme.txt Passed 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
2 plugin tags: searchmetrics, content experience

searchmetrics-content-experience/searchmetrics-content-experience.php Passed 13 tests

This is the main PHP file of "Searchmetrics Content Experience" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
The "Searchmetrics Content Experience WordPress Plugin" builds the bridge between WordPress and Searchmetrics.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,035 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP77357965
CSS381366
JavaScript3321300
SVG422256
PO File16680148

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin