84% space-lover

Code Review | Space Lover

WordPress plugin Space Lover scored84%from 54 tests.

About plugin

  • Plugin page: space-lover
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.8
  • WordPress version: 6.3.1
  • First release: Mar 25, 2014
  • Latest release: Aug 11, 2021
  • Number of updates: 63
  • Update frequency: every 42.8 days
  • Top authors: Sparanoid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Space Lover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.03 ▲2.61
Dashboard /wp-admin3.31 ▲0.0149.16 ▼3.64
Posts /wp-admin/edit.php3.36 ▲0.0152.41 ▲1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.01100.82 ▼0.15
Media Library /wp-admin/upload.php3.23 ▲0.0136.69 ▲2.42

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Space Lover
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▲0.091.69 ▼0.3840.72 ▼6.05
Dashboard /wp-admin2,206 ▲154.87 ▼1.02111.24 ▲8.2642.56 ▼2.07
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0339.11 ▼0.7234.46 ▼0.11
Add New Post /wp-admin/post-new.php1,538 ▼123.05 ▼0.22662.11 ▲43.2161.09 ▲8.90
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0299.24 ▼4.5342.85 ▼0.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 no errors were found, this is by no means 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/space-lover/space-lover.php:104

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: chinese, comments, copywriting, content, china

space-lover/space-lover.php 92% from 13 tests

The main file in "Space Lover" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2145933

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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