84% my-simple-space

Code Review | My Simple Space

WordPress plugin My Simple Space scored84%from 54 tests.

About plugin

  • Plugin page: my-simple-space
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.0
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Aug 12, 2022
  • Number of updates: 123
  • Update frequency: every 21.5 days
  • Top authors: mannweb (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

6,000+ active /60,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by My Simple Space
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.92 ▼4.39
Dashboard /wp-admin3.35 ▲0.0151.91 ▼5.50
Posts /wp-admin/edit.php3.38 ▲0.0348.95 ▲0.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.42 ▼15.97
Media Library /wp-admin/upload.php3.26 ▲0.0338.33 ▲2.38

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Simple Space
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲12014.25 ▼0.331.59 ▼0.3230.51 ▼10.17
Dashboard /wp-admin2,287 ▲1095.59 ▼0.0786.80 ▼8.2741.24 ▼3.42
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0435.65 ▼5.9132.30 ▼4.05
Add New Post /wp-admin/post-new.php1,526 ▼323.23 ▲0.08676.68 ▲28.7853.66 ▼7.05
Media Library /wp-admin/upload.php1,403 ▼04.11 ▼0.10111.52 ▲8.0046.69 ▲3.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/my-simple-space/my-simple-space.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The dashboard widget) image missing
You can look at the official readme.txt

my-simple-space/my-simple-space.php 92% from 13 tests

"My Simple Space" version 1.2.9'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: The domain path points to an invalid folder, "/languages" does not exist

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
Success! There were no dangerous files found in this plugin138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17139130
CSS1118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG files were detected