74% spreadsheet-of-posts

Code Review | Spreadsheet of Posts

WordPress plugin Spreadsheet of Posts scored74%from 54 tests.

About plugin

  • Plugin page: spreadsheet-of-posts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2014
  • Latest release: Mar 14, 2014
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: pranavnegandhi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,167 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼38.06ms] Passed 4 tests

Server-side resources used by Spreadsheet of Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.99 ▼0.42
Dashboard /wp-admin3.03 ▼0.2726.32 ▼25.02
Posts /wp-admin/edit.php3.03 ▼0.3227.52 ▼20.32
Add New Post /wp-admin/post-new.php3.03 ▼2.8622.29 ▼91.87
Media Library /wp-admin/upload.php3.03 ▼0.2021.16 ▼15.03

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Spreadsheet of Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3514.61 ▼0.121.92 ▼0.2643.91 ▲0.16
Dashboard /wp-admin2,215 ▲416.20 ▲0.5494.83 ▲4.8079.39 ▲35.38
Posts /wp-admin/edit.php2,132 ▲322.47 ▲0.4941.19 ▲0.3135.03 ▼2.50
Add New Post /wp-admin/post-new.php1,555 ▲2923.19 ▼0.22810.45 ▲170.3337.57 ▼25.29
Media Library /wp-admin/upload.php1,426 ▲324.59 ▲0.37100.96 ▼5.9476.91 ▲28.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spreadsheet-of-posts/spreadsheet-of-posts.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Spreadsheet interface to all posts in the Uncategorized category. Display of rich-formatted text)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === spreadsheet-of-posts === )
You can take inspiration from this readme.txt

spreadsheet-of-posts/spreadsheet-of-posts.php Passed 13 tests

The main file in "Spreadsheet of Posts" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Plugin for displaying Wordpress posts in a spreadsheet layout

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin11,341 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32,3221,47710,794
CSS28856371
PHP1228176

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/icon-large.png0.91KB0.98KB0.00%
css/icon-small.png0.57KB0.53KB▼ 5.69%