84% lateralpress

Code Review | LateralPress

WordPress plugin LateralPress scored84%from 54 tests.

About plugin

  • Plugin page: lateralpress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2013
  • Latest release: Jul 10, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: plumwd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by LateralPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.54 ▼5.19
Dashboard /wp-admin3.33 ▲0.0349.32 ▼3.70
Posts /wp-admin/edit.php3.38 ▲0.0352.13 ▲1.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.15 ▼6.95
Media Library /wp-admin/upload.php3.25 ▲0.0238.91 ▼1.13
Add New /wp-admin/post-new.php?post_type=lateralpress3.4050.18
LateralPress /wp-admin/edit.php?post_type=lateralpress3.3036.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by LateralPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲21713.44 ▼0.8110.94 ▲8.8543.25 ▲0.47
Dashboard /wp-admin2,239 ▲595.57 ▼0.0586.27 ▼7.4874.81 ▲29.46
Posts /wp-admin/edit.php2,144 ▲411.99 ▲0.0238.11 ▼2.9533.47 ▼6.45
Add New Post /wp-admin/post-new.php1,581 ▲5323.31 ▲0.23726.58 ▲103.6952.05 ▲2.87
Media Library /wp-admin/upload.php1,447 ▲444.15 ▼0.0297.73 ▼6.2474.61 ▲27.17
Add New /wp-admin/post-new.php?post_type=lateralpress2,6297.64176.29142.05
LateralPress /wp-admin/edit.php?post_type=lateralpress1,1511.9331.9527.89

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lateralpress/index.php:19

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: timeline, scroll, lateral on-site scrolling

lateralpress/index.php 92% from 13 tests

Analyzing the main PHP file in "LateralPress" version 1.0.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("lateralpress.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin904 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS5124415
JavaScript463127294
PHP13010195

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-20.png1.29KB0.60KB▼ 53.86%
images/logo-16.png1.25KB0.53KB▼ 57.97%
images/logo-24.png1.36KB0.61KB▼ 55.07%
images/plumeria.png2.82KB1.54KB▼ 45.33%