83% wp-spacecontent

Code Review | WP SpaceContent

WordPress plugin WP SpaceContent scored83%from 54 tests.

About plugin

  • Plugin page: wp-spacecontent
  • Plugin version: 0.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: Apr 22, 2018
  • Number of updates: 20
  • Update frequency: every 37.0 days
  • Top authors: KokoenDE (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,664 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.68ms] Passed 4 tests

Analyzing server-side resources used by WP SpaceContent
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.43 ▼2.82
Dashboard /wp-admin3.31 ▲0.0144.02 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0147.54 ▼4.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.09 ▼11.77
Media Library /wp-admin/upload.php3.23 ▲0.0136.15 ▲2.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP SpaceContent
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.20 ▼1.181.72 ▼0.1741.85 ▼7.40
Dashboard /wp-admin2,222 ▲315.90 ▲1.02109.57 ▲4.0140.67 ▼1.83
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0241.19 ▼0.1434.63 ▼2.19
Add New Post /wp-admin/post-new.php1,530 ▼1217.93 ▼0.21611.30 ▲7.8751.50 ▲0.81
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0294.85 ▼10.0941.45 ▲0.25

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-spacecontent/inc/form.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spacecontent/inc/admin-section.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spacecontent/wp-spacecontent.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Plugin Logo)
The official readme.txt might help

wp-spacecontent/wp-spacecontent.php 85% from 13 tests

"WP SpaceContent" version 0.4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("wp-spacecontent")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/wp-spacecontent")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin379 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File43636194
PHP35154157
CSS14028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin