84% lifted-locations

Code Review | Lifted Locations

WordPress plugin Lifted Locations scored 84% from 54 tests.

About plugin

  • Plugin page: lifted-locations
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Aug 3, 2016
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bmoredrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 476 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.49ms] Passed 4 tests

A check of server-side resources used by Lifted Locations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.78 ▼8.86
Dashboard /wp-admin3.33 ▲0.0344.99 ▼4.42
Posts /wp-admin/edit.php3.38 ▲0.0351.09 ▲3.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.06 ▲4.55
Media Library /wp-admin/upload.php3.25 ▲0.0238.51 ▲4.19
All Items /wp-admin/edit.php?post_type=locations3.3034.23
Add New /wp-admin/post-new.php?post_type=locations3.3748.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Lifted Locations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.24 ▼1.141.76 ▼0.7142.48 ▼9.34
Dashboard /wp-admin2,233 ▲454.81 ▼0.06106.66 ▼3.5443.03 ▼1.17
Posts /wp-admin/edit.php2,119 ▲302.00 ▲0.0139.70 ▲3.6935.41 ▲0.62
Add New Post /wp-admin/post-new.php1,537 ▲1517.58 ▼5.66602.28 ▼83.6551.99 ▲3.77
Media Library /wp-admin/upload.php1,415 ▲244.20 ▼0.0796.95 ▼6.0941.79 ▼1.70
All Items /wp-admin/edit.php?post_type=locations1,0892.0130.2529.17
Add New /wp-admin/post-new.php?post_type=locations2,2247.66168.1267.13

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lifted-locations/lib/post-type.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
2 plugin tags: locations, liftedhq

lifted-locations/lifted.php 92% from 13 tests

The primary PHP file in "Lifted Locations" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lifted-locations.php" instead of "lifted.php")

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
Success! There were no dangerous files found in this plugin65 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP241357
Markdown1408

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin