68% ourwebseo

Code Review | Our Seo

WordPress plugin Our Seo scored68%from 54 tests.

About plugin

  • Plugin page: ourwebseo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Nov 18, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ourweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /277 total downloads

Benchmarks

Plugin footprint 65% 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.00MB] [CPU: ▼8.46ms] Passed 4 tests

An overview of server-side resources used by Our Seo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0524.41 ▼11.18
Dashboard /wp-admin3.34 ▼0.0145.77 ▼16.39
Posts /wp-admin/edit.php3.39 ▲0.0345.76 ▼1.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.53 ▼4.43
Media Library /wp-admin/upload.php3.26 ▲0.0335.60 ▲5.05

Server storage [IO: ▲7.25MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • The plugin illegally modified 1 file (0.64KB) outside of "wp-content/plugins/ourwebseo/" and "wp-content/uploads/"
    • (new file) sitemap.xml
Filesystem: 79 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
ourwebseo_opts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Our Seo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,481 ▼28014.23 ▼0.050.75 ▼0.7415.09 ▼20.78
Dashboard /wp-admin2,211 ▲345.51 ▼0.1492.08 ▼7.3436.11 ▼11.97
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0339.69 ▲1.0535.68 ▼4.74
Add New Post /wp-admin/post-new.php1,539 ▲1123.18 ▲0.17668.67 ▲33.1869.15 ▲21.76
Media Library /wp-admin/upload.php1,410 ▲74.21 ▲0.0598.94 ▲1.1745.38 ▲3.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function '`ourwebseo_deactivation' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • ourwebseo_opts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ourwebseo/ourwebseo.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include(ourwebseo_SEO_URL/our_sitemap.php): failed to open stream: No such file or directory in wp-content/plugins/ourwebseo/inc/cron.php on line 8
    • > PHP Warning
      Use of undefined constant ourwebseo_SEO_URL - assumed 'ourwebseo_SEO_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ourwebseo/inc/cron.php on line 8
    • > PHP Warning
      include(): Failed opening 'ourwebseo_SEO_URL/our_sitemap.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ourwebseo/inc/cron.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
3 plugin tags: search engine, seo, sitemap

ourwebseo/ourwebseo.php Passed 13 tests

The main PHP file in "Our Seo" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
A simple SEO plugin and sitemap

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin47,721 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS188,15714035,206
JavaScript103,5931,66312,150
PHP115081206
XML600148
JSON10011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods133.33%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
No PNG images were found in this plugin